from typing import Any
from app.api.admin.model.roler import RolerModel
from app.api.admin.orm.roler import RolerORM
from app.api.admin.schemas.user import UserOutSchema
from app.base.base_service import BaseService


class IRolerService(BaseService):
    def __init__(self, orm, model):
        super().__init__(orm, model)


class RolerService(BaseService):
    def __init__(self, orm=RolerORM, model=RolerModel):
        super().__init__(orm, model)

    def get_all(self):
        for row in rows:
            UserOutSchema.model_json_schema()
            
        return 
    def create():
        db.execute(insert(RolerModel).values(name="admin"))
    
    @classmethod
    def instence(cls):
        return RolerService()
